﻿<%@ Page language="c#" MasterPageFile="~/MasterPage.master" CodeFile="FindRoomForGuests.aspx.cs" AutoEventWireup="false" Inherits="OperatorSearch.FindRoomForGuests" %>

<%@ Register src="DatePicker.ascx" tagname="DatePicker" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager runat="server" ID="Mng"></asp:ScriptManager>

    <fieldset style="width:400px">
    <table>
    <tr>
        <td>
        <asp:label id="LabelCriteria" runat="server" Font-Bold="True" Font-Size="Medium">Критерий за търсене</asp:label>
        </td>
    </tr>
    <tr>
	    <td style="width: 100px">	
	        <asp:radiobutton id="RadioButtonPrice" runat="server" Text="Цена"></asp:radiobutton>
	    </td>
	    <td style="width: 100px">
	        <asp:dropdownlist id="DropDownListPrice"
		    runat="server" Width="65px" DataSourceID="SqlDataSourceRoomPrice" DataTextField="Prise" DataValueField="Prise"></asp:dropdownlist>
        </td>
        <td style="width: 100px">
            <asp:SqlDataSource ID="SqlDataSourceRoomPrice" runat="server" ConnectionString="<%$ ConnectionStrings:Hotel SystemConnectionString %>"
            SelectCommand="SELECT [Prise] FROM [RoomType]"></asp:SqlDataSource>
         </td>
    </tr>
    <tr>
        <td style="width:100px">
            <asp:radiobutton id="RadioButtonBeds" runat="server" Text="Брой легла"></asp:radiobutton>
	    </td>
	    <td style="width:100px">
	        <asp:dropdownlist id="DropDownListBeds"
		    runat="server" Width="50px" DataSourceID="SqlDataSourceCapacity" DataTextField="Capacity" DataValueField="Capacity"></asp:dropdownlist>
        </td>
        <td style="width:100px">
            <asp:SqlDataSource ID="SqlDataSourceCapacity" runat="server" ConnectionString="<%$ ConnectionStrings:Hotel SystemConnectionString2 %>"
            SelectCommand="SELECT [Capacity] FROM [RoomType]"></asp:SqlDataSource>
        </td>
    </tr>
    <tr>
        <td style="width:auto"><uc1:DatePicker AdditionalText="От дата:" ID="DateFrom" runat="server" /></td>
        <td style="width:auto"><uc1:DatePicker AdditionalText="До дата:" ID="DateTo" runat="server" /></td>
    </tr>
    </table>
    </fieldset>
    
    <br /><br />
    
	<table>
	<tr>
	    <td>
	    <asp:button id="ButtonSearch" style="right:auto"
		    runat="server" Text="Търси свободни стаи" Width="224px"></asp:button>
	    </td>
	</tr>
	<tr>
	    <td>
	    <asp:label id="LabelResult"
		    runat="server" Font-Size="Medium" Width="185px" Height="16px">Резултат от търсенето</asp:label>
		</td>
    </tr>
    <tr>
        <td>
	    <asp:datagrid id="DataGridSearchResult"
		    runat="server" Width="577px" BorderColor="LightSteelBlue">
		    <Columns>
			    <asp:BoundColumn></asp:BoundColumn>
		    </Columns>
	    </asp:datagrid>
	    </td>
    </tr>
    <tr>
    <td><asp:Label id="LabelChosenRooms" runat="server" Font-Size="Medium">Избрани стаи</asp:Label></td>
    </tr>
    <tr>
        <td>
        <asp:DataGrid id="DataGrid1"runat="server" Width="440px">
		    <Columns><asp:BoundColumn></asp:BoundColumn></Columns>
	    </asp:DataGrid>
	    </td>
    </tr>
    <tr>
        <td>
	    <asp:Label id="LabelCommonPrice" runat="server" Font-Bold="True" Font-Size="Small">Обща стойност:</asp:Label>
	    <asp:Label id="LabelPrice" runat="server" Font-Bold="True"></asp:Label>
		</td>
	    <td>
	    <asp:Button id="ButtonContinue" runat="server" Text="Продължи" Width="104px" onclick="ButtonContinue_Click1"></asp:Button>
        </td>
    </tr>
	</table>
</asp:Content>